package org.pidan.basic.designModel.agency.JingTai;

/**
 * {@code @description}: 静态代理，代理类
 * {@code @author}: huangyuxin
 * {@code @date}: 2023-11-16
 */
public class UserDaoProxy extends UserDao {

    private UserDao userDao;

    public UserDaoProxy(UserDao userDao) {
        this.userDao = userDao;
    }

    public void save() {
        System.out.println("代理类，开启事务");
        userDao.save();
        System.out.println("代理类，结束事务");
    }
}
